package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.Medcinestore;

public interface IMedcineStoreDAO extends CrudRepository<Medcinestore, Long> {
	//查询所有的药房
	@Query("select new Medcinestore(ms.medcinestoreId,ms.medcinestoreName) from Medcinestore ms")
	public List<Medcinestore> findAllMedcineStore();
}
